const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  //关闭语法检查
  lintOnSave:false,
  devServer:{
    proxy:{
        'api':{//匹配所有以‘/api’开头的请求路径
            target:'http://127.0.0.1:3000',//代理目标的基础路径
            changeRegion:true,
            pathRewrite:{'^/api':''}
        }
    }
  }
})
